package pers.zb.cloud.oauth;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

/**
 * Oauth认证授权服务
 */
@EnableFeignClients
@EnableResourceServer
@SpringBootApplication
public class OauthApplication {

    public static void main(String[] args) {
        /*String pwd = new BCryptPasswordEncoder().encode("ordersecret");
        System.out.println(pwd);

        Boolean bool = new BCryptPasswordEncoder().matches("ordersecret","$2a$10$PQqD432TCGeVU8ln3KxFAOhHKt8CLfk4KEmX3LFFWruU3XZ5pd70K");
        System.out.println(bool);*/

        SpringApplication.run(OauthApplication.class, args);
    }
}
